﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.Models.LogOnModel>" %>
    
    <%= Html.HiddenFor(model => model.Url) %>
    <%= Html.HiddenFor(model => model.ReturnUrl) %>
    <table>
    <tr>
    <td><label>Username:</label></td>
    <td><%= Html.TextBoxFor(model => model.UserName, new { @class = "login" })%></td>
    <td><%= Html.ValidationMessageFor(model => model.UserName)%></td>
    </tr>
    <tr>
    <td><label>Password:</label></td>
    <td><%= Html.PasswordFor(model => model.Password, new { @class = "login" })%></td>
    <td><%= Html.ValidationMessageFor(model => model.Password)%></td>
    </tr>
    <tr><td><input type="submit" value="Login" /></td><td><%= Html.CheckBoxFor(m => m.RememberMe)%><label for="RememberMe">Remember Me</label></td></tr>
    <tr><td colspan="2"><%= Html.ActionLink("Forgot your password?", "ForgotPassword")%></td></tr>
    <tr>
    <td id="spinner" style="display:none" colspan="3"><img src="../Resources/ajax-loader.gif" /><span id="spinnermsg"></span></td>
    <td id="validationsummary" colspan="3"><%= Html.ValidationSummary(true)%></td>
    </tr>
    </table>
